<!doctype html>
<html xmlns="http://www.w3.org/1999/xhtml" id="html">
    <head>
        <title></title>
        <meta http-equiv="content-type" content="text/html; charset=utf-8" />
        <base href="<?= base_url(1); ?>" />
        <link type="text/css" href="css/main.css?v=<?= $config['version'] ?>" rel="stylesheet" />
    </head>
    <body>
        <?php include(VIEWPATH . 'common/main_header.php'); ?>
        <div class="datalist"><table id="flexigrid" style="display:none"></table></div>
        <script type="text/javascript">
            $(function() {
                $("#flexigrid").flexigrid($.extend(SG.flexOptions, {
                    url: '<?= site_url('logrole/rolelogin/flexigrid') ?>',
                    colModel: [
						{display: '<?= translate('LOGROLE_ROLEID') ?>', name: 'role_id', width: '100', process: formatSearch},       
						{display: '<?= translate('LOGROLE_PLATFORM_ID') ?>', name: 'platform_id', width: '100',hide:true},
						{display: '<?= translate('LOGROLE_DITCH_ID') ?>', name: 'ditch_id', width: '100',hide:true},
						{display: '<?= translate('LOGROLE_VERSION') ?>', name: 'version', width: '100',hide:true},
						{display: '<?= translate('LOGROLE_SERVER_ID') ?>', name: 'server_id', width: '100',hide:true}, 
						{display: '<?= translate('LOGROLE_ACCOUNT_ID') ?>', name: 'account_id', width: '100', process: formatSearch,hide:true},
						                                               
						{display: '<?= translate('LOGROLE_IP_ADDRESS') ?>', name: 'login_ip', width: '100', process: formatSearch,hide:true},
						//{display: '<?= translate('LOGROLE_ROLE_LEVEL') ?>', name: 'role_level', width: '100'},
						{display: '<?= translate('LOGROLE_PROFESSION_TYPE') ?>', name: 'profession_type', width: '100'}, 

						{display: '<?= translate('LOGROLE_FIRST_LOGIN') ?>', name: 'first_login', width: '100'},
                        {display: '<?= translate('LOGROLE_LOGIN_TIME') ?>', name: 'login_time', width: '150'},
                        {display: '<?= translate('LOGROLE_LOGOUT_TYPE') ?>', name: 'logout_type', width: '100'},
                        {display: '<?= translate('LOGROLE_MAC_ADDRESS') ?>', name: 'mac_address', width: '100'},
                        {display: '<?= translate('LOGROLE_DEVICE_UUID') ?>', name: 'device_uuid', width: '100'},
                        {display: '<?= translate('LOGROLE_DEVICE_TYPE') ?>', name: 'device_type', width: '100'},
                        {display: '<?= translate('LOGROLE_IDFA') ?>', name: 'idfa', width: '100'},
                        {display: '<?= translate('LOGROLE_LOGIN_ROLE_LEVEL') ?>', name: 'login_role_level', width: '150'},
                        {display: '<?= translate('LOGROLE_LOGIN_FATIGUE') ?>', name: 'login_fatigue', width: '100'},
                        {display: '<?= translate('LOGROLE_LOGIN_SILVER') ?>', name: 'login_silver', width: '100'},
                        {display: '<?= translate('LOGROLE_LOGIN_GOLD') ?>', name: 'login_gold', width: '100'},
                        {display: '<?= translate('LOGROLE_LOGIN_POINT') ?>', name: 'login_point', width: '150', hide: true},
                        {display: '<?= translate('LOGROLE_LOGIN_EXP') ?>', name: 'login_exp', width: '100'},
                        {display: '<?= translate('LOGROLE_LOGIN_SP') ?>', name: 'login_sp', width: '100'},
                        {display: '<?= translate('LOGROLE_LOGIN_PRESTIGE') ?>', name: 'login_prestige', width: '100'},
                        {display: '<?= translate('LOGROLE_LOGOUT_ROLE_LEVEL') ?>', name: 'logout_role_level', width: '150'},
                        {display: '<?= translate('LOGROLE_LOGOUT_FATIGUE') ?>', name: 'logout_fatigue', width: '100'},
                        {display: '<?= translate('LOGROLE_LOGOUT_SILVER') ?>', name: 'logout_silver', width: '100'},
                        {display: '<?= translate('LOGROLE_LOGOUT_GOLD') ?>', name: 'logout_gold', width: '100'},
                        {display: '<?= translate('LOGROLE_LOGOUT_POINT') ?>', name: 'logout_point', width: '150', hide: true},
                        {display: '<?= translate('LOGROLE_LOGOUT_EXP') ?>', name: 'logout_exp', width: '100'},
                        {display: '<?= translate('LOGROLE_LOGOUT_SP') ?>', name: 'logout_sp', width: '100'},
                        {display: '<?= translate('LOGROLE_LOGOUT_PRESTIGE') ?>', name: 'logout_prestige', width: '100'},
                        {display: '<?= translate('LOGROLE_PRE_ROLE_POSITION') ?>', name: 'pre_role_position', width: '150'},
                        {display: '<?= translate('LOGROLE_LOGIN_STONE') ?>', name: 'login_stone', width: '100', hide: true},
                        {display: '<?= translate('LOGROLE_LOGOUT_STONE') ?>', name: 'logout_stone', width: '100', hide: true},
                        {display: '<?= translate('LOGROLE_OPERATION_TIME') ?>', name: 'operation_time', width: '150'},
                        
                    ],
						
                    buttons: [ {separator: true},],                   
                }));
               
            });    
        </script>
    </body>
</html>